// 更新公告内容
import httpInstance from './http'

// 添加新公告内容
export const updateNotice = (name, nameId, form) => {
    return httpInstance.post('/updateNotice', { 
        name,
        nameId,
        form 
    })
}

// 获取最新公告内容请求
export const getNewNoticeApi = () => {
    return httpInstance.get('/getNoticeInfo');
}

// 获取所有历史公告请求
export const getAllNoticeApi = () => {
    return httpInstance.get('/getAllNotice');
}

// 删除公告历史记录请求
export const deleteNoticeApi = (id) => {
    return httpInstance.delete('/deleteNotice', {
        params: { id }
    });
}
